const { static } = require('express')
const express = require('express')
const path = require('path')
const app = express()
app.use('/aaa',express.static(path.join(__dirname,'/public')))
app.use((req,res,next)=>{
    console.log(1)
    next()
})
app.use((req,res,next)=>{
    console.log(2)
})
app.use((req,res,next)=>{
    console.log(1)
})
app.get("/",(req,res)=>{
    res.send(req.url)
})
app.listen(3000,()=>{
    console.log('server is running...')
})